/* 维护维修*/

<template>
  <div class="maintain">
    <div class="header">
      <div class="line"></div>
      <div class="title cr-hui fs-22 familyA">{{ getTtile($route.name) }}</div>
    </div>
    <div class="content">
      <transition name="fade-left-transform" mode="out-in">
        <router-view :key="key"></router-view>
      </transition>
    </div>
  </div>
</template>

<script>
export default {
  name: "maintain",
  data() {
    return {
      title: "",
    };
  },
  computed: {
    key() {
      return this.$route.fullPath;
    },
  },
 
  methods: {
    getTtile(name) {
      switch (name) {
        case "maintainList":
          return "维护/维修列表";
      }
    },
  },
};
</script>

<style lang="scss" scoped>
.maintain {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  .header {
    height: 80px;
    flex-shrink: 0;
    padding: 0px 32px;
    display: flex;
    align-items: center;
    position: relative;
    .line {
      width: 4px;
      height: 24px;
      margin-right: 16px;
      background: #00bfb1;
      border-radius: 2px;
    }
  }
  .content {
    overflow: hidden;
    flex: 0.97;
    margin: 0px 32px;
    background: #fff;
    box-shadow: 0px 20px 39px 1px rgba(8, 46, 68, 0.04);
  }
}
</style>